using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sedna.Core.Controller.Configurations
{
    public class SerialControlConfiguration: ClientScriptingConfiguration, ISerialControlConfiguration
    {
//        private string digitsPath;
        private string digitsUnbindPath;
        private string digitsBindPath;
//        private string prefixPath;
        private string prefixUnbindPath;
        private string prefixBindPath;
        private IDataTranslator prefixParser;
        private IDataTranslator prefixTranslator;
        private int maxDigitsLength;
        private int maxPrefixLength;
        private bool isPrefixChangeable;
        
        public string PrefixBindPath
        {
            get { return prefixBindPath; }
            set { prefixBindPath = value; }
        }

        public string PrefixUnbindPath
        {
            get { return prefixUnbindPath; }
            set { prefixUnbindPath = value; }
        }

        public string PrefixPath
        {
            set
            {
                prefixUnbindPath = value;
                prefixBindPath = value;
            }
        }

        public string DigitsBindPath
        {
            get { return digitsBindPath; }
            set { digitsBindPath = value; }
        }

        public string DigitsUnbindPath
        {
            get { return digitsUnbindPath; }
            set { digitsUnbindPath = value; }
        }

        public string DigitsPath
        {
            set
            {
                digitsUnbindPath = value;
                digitsBindPath = value;
            }
        }

        public IDataTranslator PrefixTranslator
        {
            get { return prefixTranslator; }
            set { prefixTranslator = value; }
        }

        public IDataTranslator PrefixParser
        {
            get { return prefixParser; }
            set { prefixParser = value; }
        }

        public int MaxPrefixLength
        {
            get { return maxPrefixLength; }
            set { maxPrefixLength = value; }
        }

        public int MaxDigitsLength
        {
            get { return maxDigitsLength; }
            set { maxDigitsLength = value; }
        }

        public bool IsPrefixChangeable
        {
            get { return isPrefixChangeable; }
            set { isPrefixChangeable = value; }
        }


    }
}
